package com.zc.study.designPattern.行为型设计模式.CommandPattern.LogFile;

/**
 * 增加命令类:具体命令
 */
public class InsertCommand extends Command{

    public InsertCommand(String name) {
        super(name);
    }

    @Override
    public void excute(String args) {
        this.args = args;
        configOperator.insert(args);
    }

    @Override
    public void excute() {
        configOperator.insert(this.args);
    }
}
